package com.xue.my.protocol;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**   
 * @Title: AbstractMessage.java 
 * @Package com.xue.my.protocol 
 * @Description: TODO
 * @author jimmy lovelyxuehanxin@163.com   
 * @date 2013-7-22 下午8:36:10 
 */
public class AbstractMessage {
	
	private HttpServletRequest request;
	
	private HttpServletResponse response;
	
	private Map<String,Object> message;
	
	private Map<String,String> hreaderMap;
	
	private byte[] data;
	
	private String msgType;
	
	private String httpBody;
	
	private String headBody;
	
	public AbstractMessage(HttpServletRequest request, HttpServletResponse response){
		this.request = request;
		this.response = response;
	}
	public HttpServletRequest getRequest() {
		return request;
	}

	public void setRequest(HttpServletRequest request) {
		this.request = request;
	}

	public HttpServletResponse getResponse() {
		return response;
	}

	public void setResponse(HttpServletResponse response) {
		this.response = response;
	}

	public Map<String, Object> getMessage() {
		return message;
	}

	public void setMessage(Map<String, Object> message) {
		this.message = message;
	}

	public Map<String, String> getHreaderMap() {
		return hreaderMap;
	}

	public void setHreaderMap(Map<String, String> hreaderMap) {
		this.hreaderMap = hreaderMap;
	}

	public byte[] getData() {
		return data;
	}

	public void setData(byte[] data) {
		this.data = data;
	}

	public String getMsgType() {
		return msgType;
	}

	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}

	public String getHttpBody() {
		return httpBody;
	}

	public void setHttpBody(String httpBody) {
		this.httpBody = httpBody;
	}

	public String getHeadBody() {
		return headBody;
	}

	public void setHeadBody(String headBody) {
		this.headBody = headBody;
	}
	
	
}
